package com.smart.six.event;

import com.smart.six.javabean.MyDataSource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author junrui.wang
 * @create 2018/6/6
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/smart/six/event/beans.xml");
        MailSender mailSender = ac.getBean("mailSender", MailSender.class);
        mailSender.sendMail("aaa@163.com");

    }
}
